module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "/back/" : "/",
  lintOnSave: process.env.NODE_ENV === "development",
  productionSourceMap: false,
  // eslint-disable-next-line no-dupe-keys
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "https://recycle.xundong.top",
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
